You can try this code for change the foreground color of a
textbox in wpf: -
txtBox.Foreground= new SolidColorBrush(Colors.Yellow);
Liked By
Write Answer
Change the Textbox foreground color in wpf.
We use cookies to ensure you have the best browsing experience on our website. By using our site, you
acknowledge that you have read and understood our
Cookie Policy &
Privacy Policy
Join MindStick Community
You have need login or register for voting of answers or question.
shreesh chandra shukla
18-Jul-2013You can try this code for change the foreground color of a textbox in wpf: -
txtBox.Foreground= new SolidColorBrush(Colors.Yellow);